package com.qsxc.dao.mapper;

import com.qsxc.business.promoter.bean.vo.CashRecordVo;
import com.qsxc.dao.entity.SmPromoterCashRecord;
import com.qsxc.system.config.mybatis.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 推广员提现记录表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2024-09-25
 */
@Mapper
public interface SmPromoterCashRecordMapper extends MyBaseMapper<SmPromoterCashRecord> {
    /**
     * 根据推广员id查询提现记录列表
     *
     * @param promoterId
     * @return
     */
    List<CashRecordVo> queryListByPromoterId(@Param("promoterId") Long promoterId, @Param("busiStatus") String busiStatus);

    /**
     * 根据推广员id查询总提现金额
     *
     * @param promoterId
     * @return
     */
    Double getTotalCashFunds(@Param("promoterId") Long promoterId, @Param("busiStatus") String busiStatus);
}
